package com.liankuan.console.controller.vo.request.User;

import com.liankuan.console.dto.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDtoIO {
    private Integer id;
    private String name;
    private String password;
    private String role;


    public UserDtoIO(User user) {
        this.id = user.getId();
        this.name = user.getName();
        this.password = user.getPassword();
    }
}
